javascript on click and some features added