JSLint

This pull request puts the JS files into compliance with JSLint guidelines and updates copyright headers.