Update main.js

It seems, you forgot to change the name of the parameter in line 226. With the proposed change every temp file gets deleted. At least in all my test cases. I'll observe that in the coming days and I'll get back to you.
Merge pull request #37 from dkadioglu/master

Update main.js