Move javascript to the index page only - it's not used anywhere else.