Update js indentation and error display