Pass Rails env as factory
Use constant instead of factory
make @sheerun happy
Merge pull request #178 from monterail/feature/js-env

Pass Rails env as constant