Javascript test for PCS