adds some javascript to toggle about state given embed in the url