separated js from client/neworder