JavaScript implementation of the Letterpress PHP API