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 as a rights reserved copyrighted source when I use it in other projects and, for you, under the Unlicense as written on July 8th, 2014. For these snippets, if you want to attribute, that's great. Just know that you're using them at your own risk.