More cases to only be updated when on last case page

Spenser Shumaker <sshumake@redhat.com>
Fix jshint

Spenser Shumaker <sshumake@redhat.com>