resize elements and delete unused jquery plugin and some other variables