Added some array functions to the js utility module