Refactoring Framework7 and using AngularJS