added template syntax to allow for multiple js files supplied from controller.