JS work around copy change