Updated for new JS Maths