remove jQuery and connect resize javascripts