uncaught path errors and JQuery update