jquery errors resolved