Comments, syntax.
Combined "showLoading" and "hideLoading" into "toggleLoading".