Create fuction.js