call function when device is already ready

using angular.element to bind event and call function when device is already ready