functional prototype with localStorage usage for OTRS 3.0.x version