Only call module onload if its present