Parser fixes and html/JS/CSS generation