Follow these steps..I did replace that file, but still the error
1. Install the script
2. After installation check if the front end page is loading or not.. If yes then go to next step .. Else ur unable to install script due to php version or permissions, etc
3. Once ur installation is complete.. Open folder public.. Then folder js.. Then extract the content from the js and copy paste it in the js folder.. It will ask you to replace the existing file.. Just click yes.
Done.. The system has been installed n running

Best of luck
