Added JS plugin (fixes #6)