To use the SDK, you must first create a reference to the
beacon-appelement on your page. This can be done using the standard reference functions, viz.
getElementsByTagName(), etc. Given below, is a recommended way of referencing the element.
var beacon = document.getElementsByTagName('beacon-app');
beacon-appelement is referenced, you can access the standard properties, along with custom properties that the SDK comes with.