Node.js: Fix for JSON parsing in packages