add IFFE that checks for domComplete, add LICENSE