Changed  global variables to grunt templates