generate ibeacon script