You should take JSLint's advice. ;^) You should also use a Markdown editor for pros. And you could peruse the blog.
You're welcome to take any code snippet I've sole-source posted on StackOverflow.com and consider it to be dual-licensed under the MIT license as found at that URL on May 28, 2015 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.
I'm now going to plug...