Broke out smash visualization javascript code into it's own file