Parse tomdoc with JS / Coffee