Moves constants to constants.js