Added filter for non-empty keys and polished up JS formatting, including fixing policy refresh
Allow table updates without resetting current place in pagination state
More consistent JavaScript style as per @ahgittin