gets rid of not used javascript