Added framework in javascript for creating handling all the document 'Parts'