Added script to index template