changed index to be non-blocking script loading