fixing jquery layer def