#2013 - Clean up gallery.panel.js.

- prepend "data-" in front of non-standard attr to be more standards compliant.
- fixed whitespaces.