how to square a number in javascript