Javascript best practices.