Restructured app.js to support multiple api methods. Added radio toggle to switch b/w different methods.