The projectview is reached from the overview by selecting a project. It shows all tasks in a compact list.
In order to select a project we need to pass the projectid to load the tasks for that project. usually one would do that in the url, but jquery mobile uses the url to decide which section of the file to show as a view.
The solution turned out to be an angular.js service. A service is shared among controllers and in our case has functions to set and get the selected project.
Btw: i discovered a very nice framework called vanilla.js. It is a lot faster than any other frameworks. It is also widely supported and well documented.