jquery errors fixed