remove unused javascript resources