fixed js hint warning