Prepares html and js for beaconization