Set up mouse clicks in js