Added web sockets and local storage support