convert to coffeescript and remove unused js files