Update copyLayer.js

Chmod test