A javascript library for formatting works