replace custom slimerjs code with npm slimerjs package