add model to index script tag