Submit/Skip task JavaScript refactoring and bug fixes.