Fix issue with js conditional
Fix issue with js conditional

Was not properly testing if there was any results, causing the js to be
evaluated on  every page.

Dkendal/battle_snake,Dkendal/battle_snake,Dkendal/battle_snake,Dkendal/battle_snake,Dkendal/battle_snake