Using JS Lint, fixed up some issues.