fixed code to get json value finally and added separate html file