compiler: js: first pass at generating models and services