dynamic page click in javascript