Fixing small bug in JS where element child was selected instead of the UJS element.