remove some file
refactor the coffeescript code to DRY