fixing jquery errors