--Javascript file loading issue in headers