Cleaned up blueprint.js

* removed unnecessary assignment
* removed unnecessary writefile function that just swapped arguments
* made double iteration in processFiles method a simple reduce