Integrating a JavaScript library as an extension

Signed-off-by: Thomas Pasch <thomas.pasch@gmx.de>