avoid unnecessary name mangling
check for generated javascript scopes to avoid mangling when possible
minor log refactoring
fixes superfluous semicolon after constructor