Added init function. Added json file retrieval with ajax