Essentially I have created my own dropdown functionality in JS which works perfectly fine however I\'m using the old method of inserting a backdrop element to close my dropdown