Removed spawn: false
Changed .toElement to .currentTarget for firefox compatibility
Added preliminary debug function to toggle