Updated helpers to add vertical alignment, updated Javascript

Reorganized some of the javascript to allow show Hide password on forms
and organised the javascript into a singleton-ish pattern