cleaning js
fix ajax so it works by delegation even on dynamically loaded links