upgrade jqm; cleanup; use real API