Cleanup JS function style in prelude.
Remove empty block from while statement in prelude.
Merge pull request #590 from nullobject/refactor/prelude

Cleanup JS in prelude.