add rootScope to waypoints directive