Formatted Gruntfile for readability.

Refactored layout.js in a closure.