using requireJS to modularize code

Signed-off-by: mike connor <mike@rocketnumber9.org>