Ajax-y version of the Type-a-Number challenge using PHP