Moved localstorage example JS to a separate JS file