added functionsnmain.js created