Removed Visual Studio cruft, updated javascript. Neigbours are calculated incorrectly.