adds jquery-style event maps for listening for changes