Wait for Javascript starting before