fix js error
Merge pull request #4 from jergason/master

fix js error