update appid for javascript