Fixed passwords validating only on length.

Added a password validator (strongPassword) in password.js. This
validator is now used in both editProfile.html and register.html.

Use JQuery's $(document).ready instead of window.addEventListener.