Completed php JSON parsing and HTML styling