Extracting index page Javascript.