fixed issue with loading local script file for form validation