tidying up js selectors