Refactored _validate.gsp to move javascript into custom_activity.js