tags: fix for editor in search results

* Fixes broken javascript editor.  (addresses #1792)

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>