udpate update_index.coffee & add resize.coffee