adds model and index javascript files