appid passing through js issue solved