Added math objects in JavaScript