solve chrome problem fromjs to server side solution