got the js working on the server