Create basescripts.js

just like a .css file, except .js

added srcedit function