Refactored MainCtrl. Logic related to JSON Editor  has been moved to JSONEditorCtrl and JSONEditorSVC files