add component related files

remove 'window' argument
it now can be used like this:

  require('domready')(fn);
Merge branch 'component'