Wrote Widget unit tests

* Move calendar-api-mock.js so both e2e and unit tests can access it
* Check to see if variables exist before referencing them
Merge pull request #35 from Rise-Vision/chore/widget-unit-tests

Wrote Widget unit tests