script added in index page