replace jquery dependencies with javascript