gets rid of extra js