removing jQuery & clean unnecessary code