support for minification of code without losing documented functionality

code as written will not withstand minification in a production environment using uglifyJS. Wrapping the code in a closure and properly exposing it does. This was a quick and dirty