Clean the code up to pass jslint and allow YUI Compressor to compress without errors.
Added the minified version.