From PRG (json) to Javascript (object)