mori library; uncompressed version ran through jsbeautifier