7 JavaScript Security Patterns That Secure My Apps

I stopped worrying about XSS, CSRF, and injection — these patterns lock it down.