Create Barfromjson.js