Added timeout as a fix for issue #53

For some reason, document.styleSheets was empty when being run, causing the pseudo styles to not be generated. As a quick fix, I simply wrapped a timeout around that function, and now it processes everything correctly (as document.styleSheets has the correct info after the timeout).