Added Mike Alsup's style/cssText fix and made a quick typeof change.