removed "$(document).onload... function for performance