Safe JS evaluation, with logging.

@jankeromnes, want to merge?