take in twitter.js and facebook.js
need to detect registered event before calling set