Refactor jQuery path