fork from http://gsgd.co.uk/sandbox/jquery/easing/