I took another look at this, I think you added the limit property to your sharesInfo object. The object sharesInfo only has two properties: level & shares. Sorry to spin the thread out in another direction, the problem was actually simpler
I tested it with a proper sharesInfo object and it worked.