Comment out var Ratio = require("lb-ratio")
and it should work.
When you include the script, Ratio is already on your global scope (of the window, not your controller).
Comment out var Ratio = require("lb-ratio")
and it should work.
When you include the script, Ratio is already on your global scope (of the window, not your controller).