the problem that the function onLoad wasn't call is solved with jQuery with the function .ready on the body