Added toggle button

Added toggle button to the ,js file