deleted jQuery and improving code