cleanup a few JSLint warnings
fix JSLint errors, mostly the forward ref to functions
JSLint cleanup
JSLint cleanupt
JSLint cleanup
JSLint cleanup
Merge pull request #1 from scottrich/master

JSLint error cleanup