php json javascript rest lessons folder