solved problem 1
solved problem 2 -- needed to define variable globally
solved problem 3 -- needed to add class .accordion to jquery selector
solved problem 4 -- had to add jquery
solved problem 5 -- click() needed anonymous function
solved problem 6 -- needed to watch window instead of #wrap