graphs/index.html: put JS code at the end of the body

See http://stackoverflow.com/q/436411