Pure JS hasClass http://jsperf.com/pure-js-hasclass-vs-jquery-hasclass/