Fixing jquery parsing issue