Fix for LiveScript

Soo, this works for LiveScript, but I wonder if it has an overhead for CoffeeScript users.
Another option would just be to revert to old Coffee version and let LS users monkeypatch this.
Merge pull request #778 from Nami-Doc/patch-1

Fix for LiveScript
Merge branch 'master' into bb-view-hooks