This is a demonstration for Breadth First Search in JavaScript. You can change Start & End's position, add & remove obstructions. Here is my online demo