Improve javascript copy content function
fix conflict in custom.js