object math javascript

completed