BlackBerry 10 WebWorks async methods synchronization