A port of WCR to JavaScript