JS fix for scp-page