JS - json, foreach, static