Updated to work with Newest Version of JQuery 1.10.2

Jquery.toggle is depreciated in the new versions, so an extra function was added to get it to work.