only compute JS when on show page