Added more options to init. Commented and completed ErrorReporter.error for JS