Pu jasmine fixes and ext

Separated from:
https://github.com/inveniosoftware/invenio/pull/2281