Revert bfb4d46..5b673d4

This rolls back to commit bfb4d46eb60d99406211822d3d6e55ed7f9aff0c.
reverted main.js, added key to env.sample