Move template loaded vars in main.coffee; improve naming convention