Delete legacy.js