removed alert('failure')

using alerts (especially with no information beyond just 'it failed') is terrible user experience