Don't create duplicate styles, bug #4

Messing with the styles too often causes a major perf hit. This fix reduces my particular page's load time from 8s on chrome to about 2s (a complex angularjs page).