fixed js toggle bug, fiddly formatting