Moved Tack page iteration functionality from tack.js to tack.jade + misc cleanup