Javascript: basic selector (class and id)