Parsed JSON from php to JS, created template for contact class.