Adding ajax call for check_version() function