Removed AJAX call and added a plaing JS file for JSON data
Removed the redundant try catch block