added examples for localStorage and custom plugin