adapt node app to work with html5 history api