added a couple of options for click events and .js file