refactor inote.coffee