Fixing Gruntfile to check if templates.js exists before trying to process the file.
Fixing constants file to properly merge.