Update jx_server_handler.js

determining of ws/wss protocol is now moved to the client side