Query Builder made in jQuery and PHP