bind onload works on localhost