Moved script inside tag