A JavaScript parser for Fountain formatted scripts that has no dependencies
include sections.js, then tokenizer.js, then parser.js in your html
// Give it a callback
parser.parse(string, function (output) {
// output.title;
// output.credit;
// output.authors;
// output.source;
// output.draft_date;
// output.date;
// output.contact;
// output.copyright;
// output.scenes;
// output.title_page_html;
// output.script_html;
});
// Get the output directly
var output = fountain.parse(string);