added js
added extrema finding function from online