You should take JSLint's advice. ;^)
You're also welcome to take any code snippet I've sole-source posted on StackOverflow.com and consider it to be dual-licensed under the Unlicense as written on July 8th, 2014 for you, and as a rights reserved copyrighted source when I use it in other projects.
For those snippets, if you want to attribute, that's great. Just know that you're using them at your own risk.