Created a locator JS file

Need to test the events