Code cleanup and feature addition

1. Implemented jQuery caching as per jQuery recommendations.
2. Code cleanup.
3. Added autocompleteOnly property that allows adding only tags that
exists in autocomplete result.