Local JavaScript database that stores and synchs with remote AJAX api