Create sumarray.js

Sums the contents of an array