Optimized for minification and added module loader compatibility.

Shaved off 1.5k from minified file :)