).replace(/<CSS/g, '<style').replace(/<\/CSS/g, '</style').replace(/<JS/g, '<script').replace(/<\/JS/g, '</script').trim());
		};

		ctrl.formSubmit = function(com) {
			SETTER('loading', 'show');
			AJAX('POST [url]api/widgets/', ctrl.get('form'), function(response) {
				SETTER('loading', 'hide', 1000);
				if (response.success) {
					SETTER('snackbar', 'success', '@(Widget has been saved successfully.)');
					com.hide();
					ctrl.refresh();
				}
			});
		};

		ctrl.backups = function(el) {

			SETTER