JavaScript with Math Objects