All my comments were based on the link you provided. I was not suggesting alternate solution, but rather move the code inside content.js. Based on his code, he is reading path from request as sendFile does, so was wondering what differently he is doing?
Anyways since you and alex are okay with it, I have merged it.