Getting the tags via ajax call

Removed duplicated html of the predefined tags.
Designing a REST api
Working on rest api