Storage module for angular JS apps