More interested how you connected to the original controller pins that the original battery would sit on, but it sounds like you removed the controller from it's original housing? Or is yours the model that had the controller on the handlebars?
You don't happen to still have the original...