Specification for using a Javascript object to represent markup