How to get the Id from html using JavaScript?