moodleforms JS validation functions out of global namespace

When you use moodleforms with client-side validation rules the required JS functions are currently added to the global namespace. MDL-52826 is about changing it and use a JS self-contained function instead, as these functions were available globally although they were kind of internal to the moodleforms instance, this may affect you if you are calling them directly from your JS code.