Test for array save using local storage.

Added a js file.