Revert "updated js controller"

This reverts commit 1d594b769349fd19048a5f5534f53d9ec7a16856.