refactor jquery dependencies