Beginning of a javascript translation framework