Added javascript array to string and string to array conversion

Added javascript array to string and string to array conversion when storing in localstorage and retrieving from it.