basejs file modified to support activeXobject & attachevent