Minor updates for linting and avoiding global vars

JSHint complains when comparisons aren't === or !==. Missing comma was causing status, topPos, lastAnimation, quietPeriod, and paginationList to be out in global space.