adding striaghtforward 2D peak finding algorithm, and functional JS code snipets