Wrapping this in a module. Smoothing out some syntax stuff.
Reverting a rule check for better cross-browser checking.