High level orginazation in index.html, moved things to Model that were Data, and forced out of cycles within pathfinding.js