Revert "Revert "updated js controller""

This reverts commit 6ee31a6557bd96ccfdd9a10d76681998f03cd6dc.