let's try this
refactoring complete

refactored javascript files to be locally. also betting works.
forgot to commit drivers.html