A naive javascript compiler