Designing and implementing advanced interactions in Firefox OS