A collection of JavaScript patterns and best practices