further cleaning of scripts.js