Make JSHint a lot happier.

 * combine variable declarations (and fix some)
 * more semicolons :) and whitespace
 * fix infinitescroll_behavior variable scope