fixed bug from refactoring
Merge branch 'master' of https://github.com/feministy/littlebooks into js_refactor
js bug fixed and refactored
Merge pull request #132 from feministy/js_refactor

Js refactor