Replaced jquery for javascript