port note index view to coffee script