Initial port of wadl2js