add a end block to add the script at the end of the body