Convert Client to Javascript