put the js at the end of body