improvment on onLoad about java checking for mac users