Create scripts.js

first function added