Update form.js

Needed to remove function declaration