TypeError: ProfileModel.getInstance is not a function To solve the error shown in console define the variable profile as var profile = ProfileModel.ProfileModel.getInstance();