How do you calculate power in JavaScript?