Create form.js

add JS file for index (form) page