Tweaked examples index js

refactored the js to use .show and .hide on the container div of each
section, and not the div used in the grid layout