fixed function error. removed main.js file