Added performance enhacement to toggle button

Added button from javaScript so only toggles for users who have
JavaScript capabilities.