GPX.js: provide more data to addpoint event

I use this code for setting custom icons to waypoints. I had this code in an two years old version of this library, but have found no traces of it in the git repo. So not sure if I have written the code or found it somewhere..