LocalStorage functionality added

Added LocalStorage which is counting the tracking events.