added controllers for successful json extraction via api in browser and also javascript