Fix 57 next button validation

fixes CG-CamSys/Backlog#57
Can't hit the next button until something is in the input field

PR also includes javascript refactor, to allow our js changes into a seperate file.