made js select whole div instead of inner arrow