Without setTimeout() the alerts in view.js are displayed twice.
I checked in Master without my patch,alerts are displaying twice(while pressing home button)