title: Can I create javascript function from remote in arangodb
body: <p>I have a remote application where users writes queries for arangodb. I want a way to interact with arangodb from REST interface and create the scripts as javascript function. Is it possible? </p>
  
  <p>For example:</p>
  
  <p>script1
      arangodb.db.collection1.properties();</p>
  
  <p>script2
      arangodb.db.collection2.properties();</p>
  
  <p>So, I was hoping if I could push the these script as to reside as javascript function at arangodb. and later when I need to run these I could just somehow do a script1() or script2() rmeotely through REST interface.</p>