JavaScript best practices added