Maybe

Maybe is a library that facilitates a safe, error-free way to handle data coming off of network requests, function calls, or DOM queries. It does this by adding a layer of abstraction and indirection between the program and the data that may or may not be inside. In doing so it helps programmers reduce the likely-hood of a faulted script and creates a clean way to handle errors that is distinct from that of normal operation.

Importing & Requiring
To actually use Maybe it first needs to be imported in such a way that a script can see it. To to this an end user either needs to import the library above the script(s) using it or a load script needs to be created.

The latter case will be covered here.

Given the script that seeks to use Maybe is called  the following pages will need to be created:

The first of these two pages will be the one that the end-user is instructed to import via. The content of the page will look like so:

This ensures that Maybe is loaded before the script that depends on it. In doing so MyScript is now able to see and require the Maybe library. To do this MyScript/code.js will look like the following:

Usage
constructor
 * : any value to wrap
 * : any value to wrap