Fix views/submit.js

* Fixes Travis as well