fixed js that we can use our scripts to deal with real server