removed auth stuff, tried out window.onload with no success