 				@pageState[pagenum] = pageState = { loadTask: loadTask }
 
 				loadTask.then (pageObject) =>
-					#console.log 'in page load success', pagenum
+					# page load success
 					$timeout.cancel(timer)
 					return if loadTask.cancelled # return from cancelled page load
 					pageState.renderTask = @doRender element, pagenum, pageObject
 					pageState.renderTask.then () =>
-						#console.log 'render task success', pagenum
+						# render task success
 						@clearIndicator page
 						pageState.complete = true
 						delete pageState.renderTask
 						@removeCompletedJob pagenum
 					, () =>
-						# display an error icon
-						# console.log 'render task failed', pagenum
+						# render task failed
+						# could display an error icon
 						pageState.complete = false
 						delete pageState.renderTask
-						# rejected
 						@removeCompletedJob pagenum
 				.catch (error) ->
-					# console.log 'in page load error', pagenum, 'timedOut=', timedOut
+					# page load error
 					$timeout.cancel(timer)
 					@clearIndicator page
-					# console.log 'ERROR', error
 
 			doRender: (element, pagenum, page) ->
 				self = this
 				scale = @scale
 
 				if (not scale?)
-					# console.log 'scale is undefined, returning'
+					# scale is undefined, returning
 					return
 
 				canvas = $('<canvas class="pdf-canvas pdfng-rendering"></canvas>')

				@errorCallback = @options.errorCallback
				@pageSizeChangeCallback = @options.pageSizeChangeCallback
				@pdfjs.promise.catch (exception) =>
					# console.log 'ERROR in get document', exception
					@errorCallback(exception)

			resetState: () ->
				#console.log 'called reset state'
				@renderQueue = []
				clearTimeout @queueTimer if @queueTimer?
				# clear any existing timers, render tasks

				# update the spinner to make it spinning (signifies loading has begun)
				@updateIndicator page

				timedOut = false
				timer = $timeout () => # page load timed out
					return if loadTask.cancelled # return from cancelled page load
					Raven?.captureMessage?('pdfng page load timed out after ' + @PAGE_LOAD_TIMEOUT + 'ms (1% sample)') if Math.random() < 0.01
					timedOut = true
					@clearIndicator page
					# @jobs = @jobs - 1
