Create directory for saving data during localStorage init
Save data as JSON string instead of duktape type info for localStorage