Bug squashing for filtering. setting theJSON earlier in index.html for debugging purposes