Remove legacy code from form.js

Removes the old form overlay code from form.js