A quick script that provides a wrapper for localstorage that dispatches events when data is changed