Updated the simulateClick function have the option of using a className