Initial commit for file spawner.js

Missing pretty much everything