throw extension when something goes wrong in js.json