refactor: Update boilerplate lib.js
refactor: Update boilerplate lib.js

Re-implement the manner in which the library is attached to the
global scope. The library is now attached to the global app variable.
This is done to prevent from further polluting the global scope.

{master}[snippets/code_snippets/boilerplate/library/js/lib.js]

cgabriel5/snippets,cgabriel5/snippets,cgabriel5/snippets