fix path normalization, use jquery cuz we have it