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

I ran into a problem due to sloppy editing, where a trailing comma was left at the end of a module's dependency array. This prompted a "Warning: Unexpected token ]" and caused the build to fail. Figured I'd attempt to add in some coddling to keep things warm and fuzzy for sloppy or inexperienced devs.