Fixed JsonEncode, added inspect function

Fixed display of immediate script errors.
Started on event handler methods.
Disabled items in italics, failed in bold red