'Writes the .txt for this page and if write_content is checked,
it will write out a .html file'

def on_update(self):

    path = export_module_json(self, self.is_standard, self.module)
    if path:
        if (not os.path.exists((path + u'.js'))):
            with open((path + u'.js'), u'w') as f:
                f.write(u'frappe.ready(function()    {\n DCTB //    bind    events    here\n})')
        if (not os.path.exists((path + u'.py'))):
            with open((path + u'.py'), u'w') as f:
                f.write(u'from    __future__    import    unicode_literals\n\nimport    frappe\n\ndef    get_context(context):\n DCTB #    do    your    magic    here\n DCTB pass\n')
