moved dom error dialog form web.rb into layout; in case of script load errors, we will try to log it to google analytics