Building lightmodels of Javascript files