catch exceptions from java script and show them to the status line
fixed call to javascript function