fixing JS minification in submission directive