ran jslint and fixed bug when minified.