Fix bug with peak indexing.

Also use better minified chartnew.min.js and document.getelementbyid for
Eve IGB compatibility.