adding the script at the end of the body