Upgraded js controllers to use new interface. Closes #4