* converted arraycontroller to js