Simplified logic by removing ejs-locals (layouts).
Also touched up a bit on style.
Merge pull request #2 from GabeLoins/simplify

Simplified logic by removing ejs-locals (layouts).