Emissary.js settings, error handling

Also fix for name replacement