First version of routine generation using angularJS for navigation