Properly working session and ajax through edn