Added the libraries for Sir Trevor.
Moved js out of gist html into the base file for now.