added .js file

added .js file to my functions folder