How can I check if body has specific class? This is my case:
document.getElementsByTagName("body")[0].className.match(/foo/)