Basic Math Exercises in Javascript