Add javascript detection to index.psp

Fixes #489
Merge pull request #492 from adamrp/i489

Add javascript detection to index.psp