Test for html & web sockets being undefined: