use handlers for javascript and rename onload