fix syntax error reported by jshint; new stuff as while clicking on the document outside the dropdown list, the dropdown list should be removed in normal scenarios