js for copy_week