Added PHP JSON feature, removed echos