fix to use jquery