updated js controllers