fixed error
Merge branch 'master' of https://github.com/jmwoo/journal

converting to js