Remove commented-out code in views hook.
Always use NODE_ENV, also some more convenience accessors in view locals