fix stupid history code
convert remaining files to coffee