removed unnecessary update check json call and javascript code