moved methods to ArangoCollection
fixed jslint errors