Read id attribute
Optional attributes should not be put in the generated js object