Create ajax.js

Uses jQuery's .ajax() method to send filters to display.php. Also stores necessary cookies and parses a single filter not requiring ajax.