To use the SDK, you must first create a reference to the
beacon-app element 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-app element is referenced, you can access the standard properties, along with custom properties that the SDK comes with.