fixing jquery boolean