fixed js reference issue