calculated momentum based on the following tutorial: http://ariya.ofilabs.com/2013/11/javascript-kinetic-scrolling-part-2.html