Prepublish script overhaul to make it work on Windows

This PR redoes the CoffeeScript compilation script so that it doesn't rely on bash and makes sure that it runs properly on Windows by adding "node" in front of the path in package.json.