Hi,
Its always a good idea to use JSLint / JSHint / ESLint / JSCS to revalidate the source.
Its probably also a good idea to have complex parsing code in a library, and have unit tests that may test it without database connectivity or foxx dependencies.
This can then i.e. be ran inside arangosh as well.