Added privacy settings on page load of Edit screen. Refactored javascript to reuse existing functions and improve readability. Rounded out comments in both javascript and python files.