#JC-1842: Update unit test for UserProfileController, javascript password modal
* Extract key "isPasswordChanged" to constant in UserProfileController
* Update unit test to check "isPasswordChanged" behaviour in UserProfileController
* Refactor js-modal message to AlertType
* Fix undefined error in js