Javascript implementation of the grimoire library