update script.js and rlsmooth.html