Delete unused search.js and change storing token in session -> cookie