Making src/core/evaluator.js adhere to the style guide

/cc @Snuffleupagus 

Note that some parts were not properly indented, causing a harder to read diff.