Javascript application for searching JSON object