I have used these in the past too and all I did was use some household 3wire and buy a plug. wire nuts and electrical tape it and if there is no ground just screw the ground wire from the 3wire to the frame with a small screw so it wont stick thru and hit something.
Always worked for me.