Update jquery.infinitescroll.js

Refactoring of function infscr_determinepath(). It simplifies the code and additionally allows a regular expression as option for extracting the path.