JQuery Mobile: how to set the properties and event handlers