began copylink.js

added improvements on current versions: threshold functionality  and simplified message variable