Moved constants from base.js to new file constants.js, eliminating magic numbers in tests.
Made improvement suggested by Brent.
Merge pull request #737 from code-dot-org/i18n

Moved constants from base.js to new file constants.js, eliminating magic...