general: JavaScript i18n helper

* Adds a _ function that can be used directly inside JavaScript code for
internationalization; example usage in tags module.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>