Ran the code through jslint, wow..