fix CSS for r:notify messages
implement error handler for Javascript