improve spacing in generated code
keep trivial functions on one line
use camel-case identifiers for everything

it's the JavaScript way