Adding the ability to build a local model from a JSON local file

ah! right! i didn't realize it was inside a callback, sorry.