Client Side Script working on Local but not on remote server

You had PHP error, you should enable Debug and check the log files.