ditch using json and just use js