Trying to get details tag to open

I have a simple page that shows events in a Calendar style monthly view. When the user clicks on a date the following script runs and takes the user to the div that corresponds to the #id on the events-calendar.html page.

                       <div class="calendar-day" onclick="goToDate()">
                            function goToDate() {
                            function click(){
                                element = browser.find_element_by_id("jun30")

The redirection to the correct page and to the correct div occurs but I cannot get the element to click so that the details expands.