read script from XMLHttp