Clean unused script footer