fixed my abuse of javascript scope. and put in a couple lines (commented out but saved for future convenience) to let me host for testing purposes on Matt's server