Framework for mobile web applications