cleaned up and fixed easing.js