Add new JS snippets

- Better browser feature detection snippet
- Merge arrays snippet
- Snippet for caching ajax requests