runs mocha tests on script changes
adds form validation errors to page