Pass locale to formater to get correct messages
Add console methods that map to logger
Add mocks of missing files to prevent warnings
Remove commented section
Close evaluator after using to cleanup javascript environment