added javascript error log functionality.