fixed js warns