 			return
 
 		onMessage: (request, sender, sendResponse) =>
-			# log request
+			log request
 			switch request.type
 				when "fragment"
 					@injectButtons()
 				when "loaded"
 					@injectButtons()
-			return		
+			return
 
 	mb = new MailButler
-) jQuery, window+	return
+
+) jQuery, window if top.document is document

			if navs.length > 0
				navs.append @composeButton MailButler.TYPE_NAV
			return

		injectThread: ->
			threads = ($ '.iH > div').filter (index) ->
				($ ".#{MailButler.MB_CLASS_THREAD}", @).length is 0
			
			if threads.length > 0
				threads.append @composeButton MailButler.TYPE_THREAD
			return

		copyAttrs: (attrs, source, target) ->

				inbox:		!!props.inbox
				#callback:	'alert'



			#jQuery.getJSON @url, data, @onScheduleSuccess
			log 'scheduling mail...', data

