rps in js