fixed jquery errors