general: JavaScript i18n helper

Is this an acceptable way to do this? Commit message follows:

* 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>