MDL-55417 forms: Keep the JS for autocomplete in the template