Refactored stepchart-generator.js and related tests into new namespace syntax. Added test global constants javascript file.