Code-style fixes
Support easy usage in: nodejs, browser (both with or w/o jQuery).