get element id with javascript