jQuery: remove unused resolve