Added rangy library and revamped document_creator.js