Improve validation scroll to element positions

Tidy up js
Refactor popup check in validation
Use method to check if popup is open
Refactor js form validation into its own module

Fix jshint errors
Apply new js class for validation