Preserve blank lines

I'm using escodegen to reformat user code in the Khan Academy live-editor. If a student adds spaces between lines to make things more reabable we'd like to maintain that format while fixing the indentation and other issues that might exist.

This submission fixes some issues from the previous one.