index.html changed

moved all Javascript pages calls to head