Modified to remove trailing commas in module dependency arrays to ensure JSON.parse() success.
Merge pull request #9 from 8bitsquid/json-parse-fix

Modified to remove trailing commas in module dependency string to ensure JSON.parse() success.