srf.formats.gallery() fix class inheritance

* Allows proper Qunit testing
* Fix jsDuck docs+

Change-Id: I19857efd0a5f96a6d00e6aaf7f547e9f29d544f2