added tests for openbibl/theme; factored utility function in openbibl/theme to ease testing; updated jsdoc