Ah... that's what the problem was. Apparently javascript isn't meant to go into the cached stylesheets...