Fix for conditional comments - should solve #15, #50, #31

I think this is a better fix than the one proposed in #15, which creates all kinds of unintended side-effects (just try running jquery through it!)