Moved script to inside the body