Cleaned up layout of Element State and used the relevant webidl