what is the advantage of this? (as opposed to just putting this dict in javascript)