added onload for required js