fix webmock issues with javascript scenarios