Fix bug and add coffee script