Fix js error
Fix issue #22