restructured how the keywords were returned from ruby and stored on client side for easier and better filtering ability