JavaScript Algorithms and Datastructures for Image Processing and Graph Analysis