Fix coffeescript end with unfinished [' or ["