Fixed bug in isPast/isPastOffset. Works correctly now.
Refactored all ajax scripts to top level directory from includes