-browser: get rid of calls to Array.indexOf
-browser: before setting ontimeout, onerror and onprogress listeners, check for their support
test-browser: merge all index.html scripts into one