A simple JavaScript function that takes a collection of londitude and latidute points in an array, and returns the bounds for use with maps.