added error handling for index

no script content
script load error