integrate line to scripts.js