Fix deprecation warnings and coffeelint errors