Cleaned up javascript var usage; Added config options for verbose logging, checkCompleteInterval, checkCompleteTimeDiff, and checkCompleteTimeout