refactor: removing jquery dependency