Fixes whitespace.
Removes code duplication and makes the eval.js path configurable.