better way to update title
install newrelic gem
send js errors to newrelic, too