Make toggle dynamic an extension of toggle.js

This makes more sense

Change-Id: I1d45ffe033f894eeaa2cee62b4c70f17bc012955
Merge "Make toggle dynamic an extension of toggle.js"