Short introduction to some best practices in JavaScript