Add javascript detection to index.psp

Fixes #489