Created new globals.js file for global constants/functions. Unique fields names are now enforced when fields get updated.