issue #14 fixed javascript error