added appType into the javascript app