Update main.js

Added anonymous callback function in persistence store constructor to test native alerts