use native js instead of jquery as much as possible