one way connection established, but client/main.html and related JS files needs to be served from spray server for AJAX to work as cross site requests are not allowed