move driver code to separate js file