Switched to socket.io for page reloads and fixed issue #1.