HTML5 and JavaScript parsing; better Rails integration