I'd get one of these and cut a hole in the back of the nightstand to feed the cable for it through. Then you can either pick up some 6-inch USB cables of various types, or deal with your longer cables.
This type of setup is also an option