Created the Function Java Script File