Pure JavaScript HTML Parser