Get Image From Url Javascript Array Functions