memory leak fixes

Hi,

as is used your script in an onepage js app, where dom removal is done not by query but another render engine, i experienced some memory leaks, which can become a problem, when the app runs to long.

this commit should reduce the leaks as global variables get nulled, when perfectScroll gets destroyed.