Created mainIndexCtrlJS