if its 2 wires on it. then just buy a plug, screw open the plug then there are 3 places for the 2 wires to go, none in earth one..
doesnt matter if u put it in the wrong ones first it just wont work til they are right.
also when attachin fan to box put a lite layer of rubber between fan and wood so it wont make loads of rattling noise.