Cleanup copy.js, remove unused import, etc..

Make easier to read and debug.. also remove an unused import