js to scripts, added more base