create external array/js