Pulling out the change password functionality into its own javascript file and view