AngularJs module to store user preferences