cleaned up variables in drawIframe function
Moved clickFlag to be turned off immediately after being detected.
Wrapped inject in if statement to prevent it running twice.