add throttle calculation functionality, AMD and node modules support, impoved toggleClass option