put scripts at top of index